﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class PatientForm : Form
    {
        public PatientForm()
        {
            InitializeComponent();
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void label4_Click(object sender, EventArgs e)
        {

        }

        private void label5_Click(object sender, EventArgs e)
        {

        }

        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void listBox3_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void handleOkBtnClick(object sender, EventArgs e)
        {
          DiagList dl = new DiagList();
          if (dl.ShowDialog() == DialogResult.OK)
          {
              //dataGridView1.Rows.Add();
          }
            
                
                MessageBox.Show("Hello!"+ " name "+nameTextBox.Text + " Date: " + dobDatePicker.Text);
            // Patient pNew = new Patient(nameTextBox.Text, dobDatePicker.Text)
            // ArrayList lines = PatientDB.GetPatients();
            //int newId = PatientDB.GetNewId(lines);
            //pNew.id = newId;
            //PatientDB.SavePatientToDB(pNew, lines);
        }

        private void nameTextBox_TextChanged(object sender, EventArgs e)
        {

        }

        private void surnameTextBox_TextChanged(object sender, EventArgs e)
        {

        }

        private void button4_Click(object sender, EventArgs e)
        {
            DiagList dl = new DiagList();
        }
    }
}
